<%@page import="helpers.UrlHelper"%>
<%@page import="models.Domain"%>
<%@page import="models.RecentSite"%>
<%@page import="java.util.ArrayList"%>
<%@page import="helpers.HeaderHelper"%>
<%
	HeaderHelper headerHelper = (HeaderHelper) request.getAttribute("headerHelper");
	String serverUrl = UrlHelper.getServerUrl(request).replace("http://", "").replace("www.", "");
%>
<jsp:include page="/layouts/header.jsp">
    <jsp:param name="title" value="<%=headerHelper.getTitle()%>" />
    <jsp:param name="description" value="<%=headerHelper.getDescription()%>" />
    <jsp:param name="keywords" value="<%=headerHelper.getKeywords()%>" />
    <jsp:param name="ogite_name" value="<%=headerHelper.getOgite_name()%>" />
    <jsp:param name="ogtitle" value="<%=headerHelper.getOgtitle()%>" />
    <jsp:param name="ogurl" value="<%=headerHelper.getOgurl()%>" />
    <jsp:param name="ogimage" value="<%=headerHelper.getOgimage()%>" />
    <jsp:param name="ogescription" value="<%=headerHelper.getOgescription()%>" />
</jsp:include>
<script type="text/javascript" src="/js/homepage.js"></script>
		<!-- 2. content -->
		<div id="content">
			<!-- 3. block -->
			<div class="block">
				<h1>Canada domain directory with <%=serverUrl %>.</h1>
				<p><%=headerHelper.getDescription() %></p>
				<div class="adv">
					<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
					<!-- domain 468x15 -->
					<ins class="adsbygoogle"
					     style="display:inline-block;width:468px;height:15px"
					     data-ad-client="ca-pub-6199598100770666"
					     data-ad-slot="2807407439"></ins>
					<script>
					(adsbygoogle = window.adsbygoogle || []).push({});
					</script>
					<br />
					<br />
				</div>
				<div class="info home">
					<div class="left">
						<div class="image">
							<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
							<!-- domain 336x280 -->
							<ins class="adsbygoogle"
							     style="display:inline-block;width:336px;height:280px"
							     data-ad-client="ca-pub-6199598100770666"
							     data-ad-slot="1470275033"></ins>
							<script>
							(adsbygoogle = window.adsbygoogle || []).push({});
							</script>
						</div>
					</div>
					<div class="left frm">
						<div class="form-search">
							<h3>Enter a domain</h3>
							<div class="text-search">
								<form action="/find" method="get">
									<input class="search" name="name" />
									<input class="button" type="submit" value=""/>
									<div class="clear"></div>
								</form>
							</div>
						</div>
						<div class="lst">
							<b>Example:</b>
							<ul>
								<li><a href="/s/lesite.ca">lesite.ca</a></li>
								<li><a href="/s/site.ca">site.ca</a></li>
								<li><a href="/s/smart-site.ca">smart-site.ca</a></li>
								<li><a href="/s/sonypictures.ca">sonypictures.ca</a></li>
								<li><a href="/s/art-site.ca">art-site.ca</a></li>
							</ul>
						</div>
					</div>
					<div class="clear"></div>
				</div>
				
				<h2>Feature Site</h2>
				<div class="list-info">
					<div class="info">
						<h3>Domain info</h3>
						<p>You can view all info of website info from a domain. You can only enter domain name into form search.</p>
					</div>
					<div class="info">
						<h3>Track ip</h3>
						<p>Check info ip address as: ISP, Organization, Proxy, Country, State/Region, City.</p>
					</div>
					<div class="info">
						<h3>Check Link</h3>
						<p>List all outlink on homepage from a domain which do you want input in my site.</p>
					</div>
					<div class="info">
						<h3><a href="/m">MyIp</a></h3>
						<p>You can view ip address which you used and view location on google map from you ip address.</p>
					</div>
					<div class="info">
						<h3><a href="/h">Hotlink</a></h3>
						<p>We have many other websites. You can used many other services from us in other website.</p>
					</div>
					<div class="info">
						<h3>More...</h3>
						<p>And you can find very more other features has in the website <%=serverUrl %> ... </p>
					</div>
				</div>
			</div>
			<!-- 3. end block -->
			
			<!-- 3. site-info -->
			<div class="site-info">
				<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
				<!-- 728x90 -->
				<ins class="adsbygoogle"
				     style="display:inline-block;width:728px;height:90px"
				     data-ad-client="ca-pub-6199598100770666"
				     data-ad-slot="3155171033"></ins>
				<script>
				(adsbygoogle = window.adsbygoogle || []).push({});
				</script>
			</div>
			<!-- 3. end site-info -->
		</div>
		<!-- 2. end content -->
		
		<!-- 2. side -->
		<div id="side">
			<!-- 3. block -->
			<div class="block">
				<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
				<!-- domain 300x250 -->
				<ins class="adsbygoogle"
				     style="display:inline-block;width:300px;height:250px"
				     data-ad-client="ca-pub-6199598100770666"
				     data-ad-slot="7377207832"></ins>
				<script>
				(adsbygoogle = window.adsbygoogle || []).push({});
				</script>
			</div>
			<!-- 3. end block -->
		
			<!-- 3. block -->
			<div class="block recent-update">
				<h3>Recent Site Update</h3>
				<div class="lst">
					<ul>
					<%
						ArrayList<Domain> recentSiteUpdate = RecentSite.getRecentSiteUpdate();
						for (int i = 0; i < recentSiteUpdate.size(); i++) {
							if (i > 20) break;
					%>
						<li><a href="/s/<%=recentSiteUpdate.get(i).getName()%>"><%=recentSiteUpdate.get(i).getName()%></a></li>
					<%	} %>
					</ul>
					<a href="javascript:void(0)" class="view-all info-link">View all</a>
				</div>
			</div>
			<!-- 3. end block -->
			
			<!-- 3. block -->
			<div class="block recent-view">
				<h3>Recent Site View</h3>
				<div class="lst">
					<ul>
						<%
						ArrayList<String> recentSiteView = RecentSite.getRecentSiteView();
						for (int i = 0; i < recentSiteView.size(); i++) {
							if (i > 20) break;
					%>
						<li><a href="/s/<%=recentSiteView.get(i)%>"><%=recentSiteView.get(i)%></a></li>
					<%	} %>
					</ul>
					<a href="javascript:void(0)" class="view-all info-link">View all</a>
				</div>
			</div>
			<!-- 3. end block -->
		</div>
		<!-- 2. end side -->
		
		<div class="clear"></div>

<jsp:include page="/layouts/footer.jsp">
    <jsp:param name="language" value="1" />
</jsp:include>